array type has incomplete element type 您所在的位置:网站首页 array type has incomplete array type has incomplete element type

array type has incomplete element type

#array type has incomplete element type| 来源: 网络整理| 查看: 265

In this tutorial, we will explain the c compilation error:

Table of Contents Tutorial video Example Output:array type has incomplete element type Solution Conclusion See also Tutorial video

In the video below you will find an explanation with examples of the error: array type has incomplete

element type.

Example

The definition of an array with multiple subscripts is missing a subscript value for a dimension higher than one.

int main() { char x[5][]; return 0; } Output:array type has incomplete element type

Here is the message that describes the error.

array type has incomplete element type Solution

To resolve this error, You need to define the subscript value .

int main() { char x[5][5]; return 0; } Conclusion

In this tutorial, we explained the c compilation error :array type has incomplete element type. You can visit our channel on youtube for the whole playtlist.

See also

dereferencing pointer to incomplete type

playtlist

Please follow and like us: fb-share-icon Tweet Pin Share


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有